package com.ruoyi.config

import org.springframework.boot.web.servlet.ServletContextInitializer
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.stereotype.Component
import org.springframework.web.socket.server.standard.ServerEndpointExporter
import javax.servlet.ServletContext

@Configuration
class WebSocketConfig : ServletContextInitializer {

    @Bean
    fun serverEndpointExporter(): ServerEndpointExporter = ServerEndpointExporter()
    override fun onStartup(servletContext: ServletContext?) {
    }
}